package net.flydy.ywxcx.wxcloudrun.vo;

import com.fasterxml.jackson.annotation.JsonSetter;


public class BaseRequest {


    private String reqNo;

    private Long timeStamp = 0L;

    /**
     * 不进行反序列化，由拦截器advice从头部获取
     */
    @JsonSetter("noSetToken")
    private  String token;
    public void noSetToken(String token) {
        //nothing
    }

    public BaseRequest() {
        this.setTimeStamp(System.currentTimeMillis());
    }

    public String getReqNo() {
        return reqNo;
    }

    public void setReqNo(String reqNo) {
        this.reqNo = reqNo;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }



    @Override
    public String toString() {
        return "BaseRequest{" +
                "reqNo='" + reqNo + '\'' +
                ", timeStamp=" + timeStamp +
                '}';
    }

}
